import { MaxLength, IsString, MinLength, IsNotEmpty } from "class-validator";

export default class ChangePassword{
    

    @MaxLength(30)
    @IsString()
    oldpassword:string;

    @MaxLength(30)
    @MinLength(6)
    @IsString()
    password:string;

    @MaxLength(20)
    @IsString()
    @IsNotEmpty()
    account:string;;
}